﻿/*****************************************************
**Copyright(C), 2021-2022, Ciqtek Technology.
**Version:     2.0
**Author:      hujiarui
**Date:        2023/07/24
**Description: 内接圆测量工具
*****************************************************/

#ifndef INCIRCLEGRAPHICSITEM_H
#define INCIRCLEGRAPHICSITEM_H

#include "../../ofuidll_global.h"

#include "EllipseGraphicsItem.h"

namespace OfUI {

	class OFUIDLL_EXPORT InCircleGraphicsItem : public EllipseGraphicsItem
	{
		Q_OBJECT
			Q_INTERFACES(QGraphicsItem)

	public:
		/**
		 * @brief  InCircleGraphicsItem 构造函数
		 * @param  parent
		 * @return
		 */
		InCircleGraphicsItem(QGraphicsItem *parent = 0);

		/**
		 * @brief  ~InCircleGraphicsItem 析构函数
		 * @return
		 */
		virtual ~InCircleGraphicsItem();

	public:
		/**
		 * @brief  select 坐标选择拖拽类型
		 * @param  point
		 * @param  selType
		 * @return BaseGraphicsItem::MouseDragType
		 */
		MouseDragType select(const QPointF& point, int* selType = nullptr) const override;

		/**
		 * @brief  mouseMoveEvent 鼠标移动事件
		 * @param  event
		 * @return void
		 */
		void mouseMoveEvent(QGraphicsSceneMouseEvent *event) override;
	};

}

#endif // INCIRCLEGRAPHICSITEM_H
